package com.zygh.coordinatestore.mapper;

import com.zygh.coordinatestore.entity.Coordinate;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CoordinateMapper {

    Integer insertSelective(Coordinate coordinate);//一个插入的例子
    List<Coordinate> findInfoByPolice(String police); //查询所有坐标轨迹(根据警号)
    Coordinate findInfoById(String id); //查询所有坐标轨迹(根据id)
    Integer updateByPrimaryKeySelective(Coordinate coordinate);//根据id修改坐标轨迹
    List<Coordinate> findAllId();//查询所有id
}
